﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DoFeedBack.aspx.cs" Inherits="webadmin_DoFeedBack" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () {
            BindBtn();
            $("#txtTitle").focus();
        });
        function CheckInput() {
            var title = $("#txtTitle");
            if ($.isEmpty(title.val())) {
                alert("请输入问题标题！");
                title.focus();
                return false;
            }
            if (!$.RealLengthBetween(title.val(), 1, 100)) {
                alert("标题长度不能超过100个字符，请重新输入！");
                title.focus();
                return false;
            }
            var sort = $("#ddlSort");
            if (sort.val() == "0") {
                alert("请选择子分类！");
                return false;
            }
            var info = $("#txtInfo");
            if ($.isEmpty(info.val())) {
                alert("请输入问题内容！");
                info.focus();
                return false;
            }
            return true;
        }
        function ResetPage() {
            top.$("#DialogIframe").dialog('close');
            var btn = top.$("#mainFrame").contents().find("#btnSubmit");
            $(btn).click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="conBox">
        <table class="dialogTable">
            <tr>
                <th>
                    问题标题：
                </th>
                <td>
                    <asp:HiddenField ID="hfID" runat="server" />
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="txtbox" Width="300"></asp:TextBox>
                    <span>*</span>
                </td>
            </tr>
            <tr>
                <th>
                </th>
                <td>
                    <span>(长度为1-100个字符，由任意字符组成。)</span>
                </td>
            </tr>
            <tr>
                <th>
                    分类：
                </th>
                <td>
                    <asp:DropDownList ID="ddlSort" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th>
                    问题内容：
                </th>
                <td>
                    <asp:TextBox ID="txtInfo" runat="server" CssClass="txtbox" TextMode="MultiLine" Width="300"
                        Height="50"></asp:TextBox>
                    <span>*</span>
                </td>
            </tr>
            <tr>
                <th>
                    回复内容：
                </th>
                <td>
                    <FCKeditorV2:FCKeditor ID="fckInfo" runat="server" Height="300">
                    </FCKeditorV2:FCKeditor>
                    <asp:HiddenField ID="hfReID" runat="server" />
                </td>
            </tr>
            <tr>
                <th>
                    页面标题：
                </th>
                <td>
                    <asp:TextBox ID="txtPageTitle" runat="server" CssClass="txtbox" Width="500"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    页面关键字：
                </th>
                <td>
                    <asp:TextBox ID="txtPageKeywords" runat="server" CssClass="txtbox" TextMode="MultiLine"
                        Width="500" Height="40"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    页面描述：
                </th>
                <td>
                    <asp:TextBox ID="txtPageDescription" runat="server" CssClass="txtbox" TextMode="MultiLine"
                        Width="500" Height="40"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="line-height: 30px;" colspan="2" align="center">
                    <asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClientClick="return CheckInput();"
                        OnClick="btnSubmit_Click" CssClass="button" />
                    <input type="reset" class="button" value="关 闭" onclick="top.$('#DialogIframe').dialog('close');" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
